package cn.yunhe.springboot_shiro.dao;

import cn.yunhe.springboot_shiro.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Set;
@Repository
public interface UserMapper {

    User login(@Param("username") String name);

    Set<String> getRoles(@Param("username") String name);

    Set<String> getPermissions(@Param("username") String name);
}
